<?php	
						$sql = mysql_query("select * from experts where experts_id=".$_REQUEST['expert_id']);       
						
						$row= mysql_fetch_array($sql);
						?>
					<form name="edit_expert" id="edit_expert" method="post" action="edit_expert_process.php">
						<table border="0" width="100%" cellspacing="3" cellpadding="2" class="pro">      
							<tr><td colspan="2" class="create">EDIT EXPERT</td></tr>
							<tr><td colspan="2" style="height:15px;"></td></tr>
							<tr>
								<td><span class="label">First Name</span></td>
								<td>:</td>
								
                                    <td><input  type="text" id="experts_fname" name="experts_fname" class="validate[required,custom[noSpecialCaracters],length[0,20]]" value="<?php echo $row['experts_fname']; ?>"></td>    
									<td><input  type="hidden" id="expert_id" name="expert_id" value="<?php echo $row['experts_id']; ?>"></td>
                                </tr>
                                
                                <tr>
                                    <td>Last Name</td>
									<td>:</td>
                                    <td><input  type="text" id="experts_lname" name="experts_lname" class="validate[required,custom[noSpecialCaracters],length[0,20]]" value="<?php echo $row['experts_lname']; ?>"></td>
                                    </td>
                                    
                                </tr>
                                <tr>
                                     <td>Address</td>
									 <td>:</td>
                                    <td><textarea rows="3" cols="25" name="experts_address" id="experts_address" class="validate[required,custom[noSpecialCaracters],length[0,20]]" ><?php echo $row['experts_address']; ?></textarea>
                                    </td>
                                </tr>  
								<tr>
									<td>Country</td>
									<td>:</td>
									<td><?php echo AGetCountry();?></td>
								</tr> 
                                <tr>
                                    <td>Phone</td>
									<td>:</td>
									<td><input  type="text" name="experts_phone" id="experts_phone" class="subcategory" clas"validate[required]" value="<?php echo $row['experts_phone']; ?>"><!-- change class -->
                                    </td>   
                                </tr>				
                                
                                <tr>
                                    <td>Mobile</td>
									<td>:</td>
                                    <td><input  type="text" name="experts_mob" id="experts_mob" class="subcategory" clas"validate[required]" value="<?php echo $row['experts_mob']; ?>"><!-- change class -->
                                     </td>   
                                </tr>				
                                      
                                <tr>
                                    
                                    <td>Username</td>
									<td>:</td>
                                    <td><input  type="text" name="experts_username" id="experts_username" class="category" class"validate[required]" value="<?php echo $row['experts_username']; ?>"></td><!-- change class -->
                               </tr>                                                                                               
								<tr>
								<td> Expert Sub-Category</td>
								<td>:</td>
								<td><?php echo GetExpertSubCategories();?></td>
								  </tr> 
          
                                <tr><td colspan="2" style="height:10px;"></tr>						
                                <tr>
                                    <td colspan="3" align="center"><input type="submit" name="submit" value="Submit" onClick="return validate();" class="sub-butt"/></td>
                                </tr>
						</table>
					</form>
					<?php
						//}
					?>
                    </td>                    
                </tr>               
            </table>   <!--end User Form--> 


			
